Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Function |reveal_only_by

std/secret::|reveal_only_by


Usage

|reveal_only_by<T>(secret, elements)

Generics

◻ T (any)

Parameters

↳ secret: Secret<T>
↳ elements: Vec<string>

Return

↴ Secret<T>


Limits the elements that may reveal a secret to the ones in elements, given as identifiers such as std/secret::reveal.